<template>
  <div id="scheduling">
    <el-table
      :data="schedulingList"
      stripe
      border
    >
      <el-table-column label="排班计划名称" prop="schedulingName" align="center"></el-table-column>
      <el-table-column label="团队名称" prop="teamName" align="center"></el-table-column>
      <el-table-column label="计划开始时间" prop="startDateTime" align="center"></el-table-column>
      <el-table-column label="计划结束时间" prop="endDateTime" align="center"></el-table-column>
      <el-table-column label="操作" width="220" align="center">
        <template>
          <el-button type="warning" size="mini" icon="el-icon-video-pause">提前终止</el-button>
          <el-button type="danger" size="mini" icon="el-icon-delete">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { listScheduling } from '@/api/scheduling'

export default {
  name: 'Scheduling',
  data() {
    return {
      schedulingList: []
    }
  },
  mounted() {
    this.getSchedulingData()
  },
  methods: {
    getSchedulingData() {
      listScheduling().then(res => {
        this.schedulingList = res.data.list
      })
    }
  }
}
</script>

<style scoped>

</style>
